package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计划排产对象 mes_product_schedule
 * 
 * @author ruoyi
 * @date 2024-11-14
 */
public class MesProductSchedule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 计划编号 */
    @Excel(name = "计划编号")
    private Long planId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderId;

    /** 物料编号 */
    @Excel(name = "物料编号")
    private Long materialId;

    /** BOM单编号 */
    @Excel(name = "BOM单编号")
    private Long bomId;

    /** 生产线编号 */
    @Excel(name = "生产线编号")
    private Long productLineId;

    /** 工艺编号 */
    @Excel(name = "工艺编号")
    private Long processId;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private Long projectId;

    /** 待产数量 */
    @Excel(name = "待产数量")
    private Long requireQuantity;

    /** 已产数量 */
    @Excel(name = "已产数量")
    private Long productQuantity;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productDate;

    /** 交货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    /** 发布状态 */
    @Excel(name = "发布状态")
    private String status;

    /** 领料状态 */
    @Excel(name = "领料状态")
    private String receiveStatus;

    /** 排产编号 */
    @Excel(name = "排产编号")
    private String serialNo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setBomId(Long bomId) 
    {
        this.bomId = bomId;
    }

    public Long getBomId() 
    {
        return bomId;
    }
    public void setProductLineId(Long productLineId) 
    {
        this.productLineId = productLineId;
    }

    public Long getProductLineId() 
    {
        return productLineId;
    }
    public void setProcessId(Long processId) 
    {
        this.processId = processId;
    }

    public Long getProcessId() 
    {
        return processId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setRequireQuantity(Long requireQuantity) 
    {
        this.requireQuantity = requireQuantity;
    }

    public Long getRequireQuantity() 
    {
        return requireQuantity;
    }
    public void setProductQuantity(Long productQuantity) 
    {
        this.productQuantity = productQuantity;
    }

    public Long getProductQuantity() 
    {
        return productQuantity;
    }
    public void setProductDate(Date productDate) 
    {
        this.productDate = productDate;
    }

    public Date getProductDate() 
    {
        return productDate;
    }
    public void setDeliveryDate(Date deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() 
    {
        return deliveryDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setReceiveStatus(String receiveStatus) 
    {
        this.receiveStatus = receiveStatus;
    }

    public String getReceiveStatus() 
    {
        return receiveStatus;
    }
    public void setSerialNo(String serialNo) 
    {
        this.serialNo = serialNo;
    }

    public String getSerialNo() 
    {
        return serialNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("orderId", getOrderId())
            .append("materialId", getMaterialId())
            .append("bomId", getBomId())
            .append("productLineId", getProductLineId())
            .append("processId", getProcessId())
            .append("projectId", getProjectId())
            .append("requireQuantity", getRequireQuantity())
            .append("productQuantity", getProductQuantity())
            .append("productDate", getProductDate())
            .append("deliveryDate", getDeliveryDate())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("receiveStatus", getReceiveStatus())
            .append("serialNo", getSerialNo())
            .toString();
    }
}
